<?php
namespace app\bis\controller;
use think\Controller;

class Base extends Controller
{
	public $account;

	public function _initialize(){
		//判断用户是否登陆
		if(!$this->account){
			$this->account = session('BisAccount','','bis');
		}
		if(!$this->account){
			$this->redirect(url('login/index'));
		}
		$this->assign('bisAccount',$this->account);
	}
}
